import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)

export default new Router({
  routes: [
    {
      // 首先进行重定向操作
      path: '/',
      name: '报表',
      redirect: '/onlineCust/onlineQuestionSurvey',
      component: resolve => require(['@/views/index.vue'], resolve),
      children: [{
        // 在线座席
        path: '/onlineCust',
        name: '在线座席相关报表',
        redirect: '/onlineCust/onlineQuestionSurvey'
        // component: resolve => require(['@/views/functionModel/onlineQuestionSurvey.vue'], resolve)
      },
      {
        path: '/onlineCust/onlineQuestionSurvey',
        name: '在线问卷调查统计表',
        component: resolve => require(['@/views/functionModel/onlineQuestionSurvey.vue'], resolve)
      }, {
        path: '/onlineCust/onlineQuestionDetails',
        name: '在线问卷调查明细表',
        component: resolve => require(['@/views/functionModel/onlineQuestionDetails.vue'], resolve)
      }, {
        path: '/onlineCust/onlineNoResponse',
        name: '在线座席无应答表',
        component: resolve => require(['@/views/functionModel/onlineNoResponse.vue'], resolve)
      }, {
        path: '/onlineCust/onlineBusinessDetail',
        name: '在线座席业务明细表',
        component: resolve => require(['@/views/functionModel/onlineBusinessDetail.vue'], resolve)
      }, {
        path: '/onlineCust/onlineQyuickFuncClick',
        name: '在线客服快捷功能点击量统计表',
        component: resolve => require(['@/views/functionModel/onlineQyuickFuncClick.vue'], resolve)
      }, {
        path: '/onlineCust/onlineCustomerServiceOperationTableData',
        name: '在线客服运营数据统计报表',
        component: resolve => require(['@/views/functionModel/onlineCustomerServiceOperationTableData.vue'], resolve)
      }, {
        path: '/onlineCust/onlineCustomStateDetailTableData',
        name: '在线座席状态明细表',
        component: resolve => require(['@/views/functionModel/onlineCustomStateDetailTableData.vue'], resolve)
      }, {
        path: '/onlineCust/onlineCustomStatusTable',
        name: '在线座席工作情况表',
        component: resolve => require(['@/views/functionModel/onlineCustomStatusTable.vue'], resolve)
      },

      // -----------
      {
        path: '/custCenter',
        name: '客服中心报表',
        redirect: '/custCenter/onlineDissatisfied'
        // component: resolve => require(['@/views/functionModel/onlineDissatisfied.vue'], resolve),
        // children: []
      },
      {
        path: '/custCenter/onlineDissatisfied',
        name: '客服中心座席不满意得分报表',
        component: resolve => require(['@/views/functionModel/onlineDissatisfied.vue'], resolve)
      }, {
        path: '/custCenter/onlineQualityTesting',
        name: '客服中心座席质检得分报表',
        component: resolve => require(['@/views/functionModel/onlineQualityTesting.vue'], resolve)
      }, {
        path: '/custCenter/qualityInspectionAnaly',
        name: '客服中心质检分析表',
        component: resolve => require(['@/views/functionModel/qualityInspectionAnaly.vue'], resolve)
      }, {
        path: '/custCenter/transactionFlow',
        name: '客服中心交易流水记录表',
        component: resolve => require(['@/views/functionModel/transactionFlow.vue'], resolve)
      }, {
        path: '/custCenter/serviceLevel',
        name: '客服中心服务水平稳定性报表',
        component: resolve => require(['@/views/functionModel/serviceLevel.vue'], resolve)
      }, {
        path: '/custCenter/customServiceCenterTable',
        name: '客服中心质检工作情况报表',
        component: resolve => require(['@/views/functionModel/customServiceCenterTable.vue'], resolve)
      }, {
        path: '/custCenter/customWokerWatchTimeOverTable',
        name: '客服中心职场监控超时表',
        component: resolve => require(['@/views/functionModel/customWokerWatchTimeOverTable.vue'], resolve)
      }, {
        path: '/custCenter/customCenterSatisfied',
        name: '客服中心满意度明细表',
        component: resolve => require(['@/views/functionModel/customCenterSatisfied.vue'], resolve)
      }, {
        path: '/custCenter/customCenterInterDetail',
        name: '客服中心交互明细表',
        component: resolve => require(['@/views/functionModel/customCenterInterDetail.vue'], resolve)
      }, {
        path: '/custCenter/phoneSectionTable',
        name: '客服中心电话小结统计报表',
        component: resolve => require(['@/views/functionModel/phoneSectionTable.vue'], resolve)
      }, {
        path: '/custCenter/customCenterOpeartCountTable',
        name: '客服中心运营数据统计报表',
        component: resolve => require(['@/views/functionModel/customCenterOpeartCountTable.vue'], resolve)
      },
      // -------------------
      {
        path: '/phone',
        name: '电话报表',
        redirect: '/phone/phoneOperationDataSheetOld'
        // component: resolve => require(['@/views/functionModel/phoneOperationDataSheetOld.vue'], resolve),
        // children: []
      },
      {
        path: '/phone/phoneOperationDataSheetOld',
        name: '电话银行运营数据报表（日时段）',
        component: resolve => require(['@/views/functionModel/phoneOperationDataSheetOld.vue'], resolve)
      }, {
        path: '/phone/phoneOperationDataSheet',
        name: '电话银行运营数据统计报表',
        component: resolve => require(['@/views/functionModel/phoneOperationDataSheet.vue'], resolve)
      }, {
        path: '/phone/IVRtrajectorytableData',
        name: '电话银行IVR轨迹明细报表',
        component: resolve => require(['@/views/functionModel/IVRtrajectorytableData.vue'], resolve)
      }, {
        path: '/phone/phoneStateDetailTableData',
        name: '电话座席状态明细表',
        component: resolve => require(['@/views/functionModel/phoneStateDetailTableData.vue'], resolve)
      }, {
        path: '/phone/phoneWorkStatusTable',
        name: '电话座席工作情况表',
        component: resolve => require(['@/views/functionModel/phoneWorkStatusTable.vue'], resolve)
      }, {
        path: '/phone/phoneBankOpenCountTable',
        name: '电话银行开通情况统计报表',
        component: resolve => require(['@/views/functionModel/phoneBankOpenCountTable.vue'], resolve)
      },
      {
        path: '/translate',
        name: '交易报表',
        redirect: '/translate/savingFundDetailTable'
        // component: resolve => require(['@/views/functionModel/savingFundDetailTable.vue'], resolve),
      },
      {
        path: '/translate/savingFundDetailTable',
        name: '储蓄资金交易明细表',
        component: resolve => require(['@/views/functionModel/savingFundDetailTable.vue'], resolve)
      }, {
        path: '/translate/trustActiveTranslateTable',
        name: '信用卡激活交易明细表',
        component: resolve => require(['@/views/functionModel/trustActiveTranslateTable.vue'], resolve)
      }, {
        path: '/translate/trustTranslateStagesTable',
        name: '信用卡交易分期明细表',
        component: resolve => require(['@/views/functionModel/trustTranslateStagesTable.vue'], resolve)
      }, {
        path: '/translate/trustTranslateCashInstallmentTable',
        name: '信用卡现金分期明细表',
        component: resolve => require(['@/views/functionModel/trustTranslateCashInstallmentTable.vue'], resolve)
      }, {
        path: '/translate/trustWithdrawalWillDetailsTable',
        name: '信用卡随意分提用明细表',
        component: resolve => require(['@/views/functionModel/trustWithdrawalWillDetailsTable.vue'], resolve)
      }, {
        path: '/translate/trustValetTransactionsTable',
        name: '信用卡代客交易汇总统计表',
        component: resolve => require(['@/views/functionModel/trustValetTransactionsTable.vue'], resolve)
      }, {
        path: '/translate/shortMsgSendDetailTable',
        name: '短信发送明细表',
        component: resolve => require(['@/views/functionModel/shortMsgSendDetailTable.vue'], resolve)
      }, {
        path: '/translate/shortMsgSendCountTable',
        name: '短信发送统计表',
        component: resolve => require(['@/views/functionModel/shortMsgSendCountTable.vue'], resolve)
      }, {
        path: '/translate/returnVisitsCallsDetail',
        name: '回访外呼明细表',
        component: resolve => require(['@/views/functionModel/returnVisitsCallsDetail.vue'], resolve)
      }, {
        path: '/translate/scoreExchangeDetail',
        name: '积分兑换明细表',
        component: resolve => require(['@/views/functionModel/scoreExchangeDetail.vue'], resolve)
      },
      // ----------
      {
        path: '/ews',
        name: '工单报表',
        redirect: '/ews/allEwsCountTable'
        // component: resolve => require(['@/views/functionModel/allEwsCountTable.vue'], resolve),
        // children: []
      }, {
        path: '/ews/allEwsCountTable',
        name: '全行工单统计表',
        component: resolve => require(['@/views/functionModel/allEwsCountTable.vue'], resolve)
      }, {
        path: '/ews/EwsProcessing',
        name: '工单处理情况',
        component: resolve => require(['@/views/functionModel/EwsProcessing.vue'], resolve)
      }, {
        path: '/ews/EwsAgingMonitoring',
        name: '工单时效监控表',
        component: resolve => require(['@/views/functionModel/EwsAgingMonitoring.vue'], resolve)
      }, {
        path: '/ews/subbranchEwsAcceptanceTable',
        name: '支行工单受理统计表',
        component: resolve => require(['@/views/functionModel/subbranchEwsAcceptanceTable.vue'], resolve)
      }]
    }
  ]
})
